$(function () {

    var download_live = {};
    var html_data = {
        baseConfig: baseConfig,
        sessionid: '',
        sessionid_q: '',
        cart_num: 0,
        goodsstore: {},
        goods_order_item: [],
        show_pengyou_dongtai_images:false,
        exprress_list:[]

    };
    var app = new Vue({
            el: '#goodsordermap',
            data: html_data,
            methods: {
                price_filter: price_filter,


                close_page: function () {
                    ttjd.close_phonegap();
                },
                page_back: function () {
                    baseConfig.page_back();
                }
            }
        })
        ;

    html_data.sessionid = GetQueryString('sessionid');
    if (html_data.sessionid) {
        html_data.sessionid_q = "sessionid=" + html_data.sessionid;
        client_storage('sessionid', html_data.sessionid);
    }


    window.show_map = function () {
        api.lgoods.get_goodsstroe({goodsstore_id:GetQueryString("goodsstore_id")}).then(function (data) {
            html_data.goodsstore = data.result;
            window.b_init(data.result.la, data.result.lo, 12).then(function () {

                var store_image = "img2/mark022.png";
                var person_image = "img2/mark062.png";
                var beachMarker = new google.maps.Marker({
                    position: {lat: data.result.la, lng: data.result.lo},
                    label: data.result.name,
                    map: map,
                    icon: store_image
                });
                api.sys.get_buyer({uid:GetQueryString("uid")}).then(function (value) {
                    var beachMarker = new google.maps.Marker({
                        position: {lat: value.result.la, lng: value.result.lo},
                        label: value.result.name,
                        map: map,
                        icon: person_image
                    });
                })

            });
        })

    }
    document.getElementsByTagName("BODY")[0].onpageshow = function (event) {
        if (event && !event.persisted) {
            return;
        }
        window.show_map();
    };
    document.getElementsByTagName("BODY")[0].onpageshow();
})
;
